﻿<Window x:Class="WpfCalculator1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Dictionary1.xaml"></ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            
        </ToolBar>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            
            <Button Grid.Row="0" Grid.Column="0">7</Button>
            <Button Grid.Row="0" Grid.Column="1">8</Button>
            <Button Grid.Row="0" Grid.Column="2">9</Button>
            <Button Grid.Row="0" Grid.Column="3">/</Button>
            <Button Grid.Row="0" Grid.Column="4">%</Button>

            <Button Grid.Row="1" Grid.Column="0">4</Button>
            <Button Grid.Row="1" Grid.Column="1">5</Button>
            <Button Grid.Row="1" Grid.Column="2">6</Button>
            <Button Grid.Row="1" Grid.Column="3">*</Button>
            <Button Grid.Row="1" Grid.Column="4">1/x</Button>

            <Button Grid.Row="2" Grid.Column="0">1</Button>
            <Button Grid.Row="2" Grid.Column="1">2</Button>
            <Button Grid.Row="2" Grid.Column="2">3</Button>
            <Button Grid.Row="2" Grid.Column="3">-</Button>
            <Button Grid.Row="2" Grid.Column="4" Grid.RowSpan="2" Style="{StaticResource Blue}">=</Button>

            <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource Green}">0</Button>
            <Button Grid.Row="3" Grid.Column="2">.</Button>
            <Button Grid.Row="3" Grid.Column="3">+</Button>
        </Grid>
    </Grid>
</Window>
